# 仓库中出现的异常
class DuplicateWid(Exception):
    """
    仓库号重复

    """

    def __init__(self, value='仓库号重复!'):
        self.value = value

    def __str__(self):
        return repr(self.value)


class ErrorWid(Exception):
    """
    仓库号长度错误，应该为4位

    """

    def __init__(self, value='仓库号长度错误，应该为4位!'):
        self.value = value

    def __str__(self):
        return repr(self.value)


class NotFindWid(Exception):
    """
    仓库号找不到

    """

    def __init__(self, value='仓库号找不到!'):
        self.value = value

    def __str__(self):
        return repr(self.value)
